<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8">
    <title>我的收藏-{$tpshop_config['shop_info_store_title']}</title>
    <meta name="keywords" content="{$tpshop_config['shop_info_store_keyword']}" />
    <meta name="description" content="{$tpshop_config['shop_info_store_desc']}" />
    <link rel="stylesheet" href="__STATIC__/css/index.css" type="text/css">
    <link rel="stylesheet" href="__STATIC__/css/myuser.css" type="text/css">
</head>

<body>
<!--------头部开始-------------->
<include file="Public/header" />
<include file="Public/topnav" />
<!--------头部结束-------------->

<div class="page_pad">
  <div class="page_margin">
    <div class="page_radius page_hidden">
      <div class="page_padin">
        <div class="user_page">
          <div class="user_poi">当前位置：首页 &gt; <span>我的收藏</span></div>
          <div class="user_left">
            <include file="User/userleft" />
          </div><!--user_left-->

          <div class="user_right">
            <div class="order_page">
              <div class="uright_tabs">
                <ul>
                  <li><a href="{:U('Home/User/seller_list')}">我出售的网店</a></li>
                  <li><a  href="{:U('Home/User/order_list')}">我购买的网店</a></li>
                  <li><a class="on" href="{:U('Home/User/goods_collect')}">我收藏的网店</a></li>
                  <div class="clear"></div>
                </ul>
              </div><!--uright_tabs-->

              <div class="order_list">
                <div class="order_ttable">
                  <table>
                    <tr>
                      <td width="250"><div class="order_ttli"><div class="h1">标题</div></div></td>
                      <td width="180"><div class="order_ttli"><div class="h1">出售价格</div></div></td>
                      <!--<td width="260"><div class="order_ttli"><div class="h1">消保金额</div></div></td>-->
                      <td width="180"><div class="order_ttli"><div class="h1">销售状态</div></div></td>
                      <td><div class="order_ttli"><div class="h1">操作</div></div></td>
                    </tr>
                  </table>
                </div>
                <div class="order_ul">
                <!------------------------------->
                <foreach  name="lists" item="v" key="k">
                  <div class="order_li">
                    <div class="order_libor">
                      <!--<div class="order_lih1">
                        <div class="order_libor2">
                          <span class="order_h1"><a href="{:U('Home/Goods/goodsInfo',array('id'=>$v['goods_id']))}" target="_blank">【店铺信息】</a></span>
                          <span class="order_h4"><span class="pad">网店发布时间：{$v.add_time|date='Y-m-d H:i',###} </span></span>
                        </div>
                      </div>-->


                      <div class="order_lih2">
                        <div class="order_libor2">

                          <table>
                            <tr>
                              <td align="left" width="250">
                                <div class="order_tt">
                                  <a href="{:U('Home/Goods/goodsInfo',array('id'=>$v[goods_id]))}"  target="_blank" >
                                    <span>
                                      <php>if($v[goods][goods_type]==3){</php>
                                       <img src="__STATIC__/images/sico_tm.png" />
                                      <php>}elseif($v[goods][goods_type]==4){</php>
                                       <img src="__STATIC__/images/sico_tb.png" />
                                      <php>}elseif($v[goods][goods_type]==5){</php>
                                       <img src="__STATIC__/images/sico_jd.png" />
                                      <php>}elseif($v[goods][goods_type]==6){</php>
                                       <img src="__STATIC__/images/sico_qt.png" />
                                      <php>} </php>

                                    </span>
                                     {$v.goods.seller_title}
                                  </a>
                                </div>
                              </td>
                              <td width="180"><span class="order_pp">￥<span>{$v.goods.price}</span></span></td>
                              <php>if($v[goods][status]==1){</php>
                                <td width="180">待售</td>
                                <td>
                                  <a href="{:U('Home/Goods/goodsInfo',array('id'=>$v[goods_id]))}"  >购买</a>
                                  <a href="javascript:void(0)" onclick="cancel_sc({$v.collect_id})">删除</a>
                                </td>

                                <php>}else{</php>
                                <td width="180"> 已售</td>
                                <td>
                                  <a href="javascript:void(0)" onclick="cancel_sc({$v.collect_id})">删除</a>
                                </td>


                              <php>} </php>



                            </tr>
                          </table>
                        </div>
                      </div><!--order_lih2-->
                    </div><!--order_libor-->
                  </div><!--order_li-->
                </foreach>
                </div><!--order_ul-->
                <div>{$page}</div>

                <!------------------------------->
              </div><!--order_list-->
            </div><!--order_page-->
          </div><!--user_right-->
          <div class="clear"></div>
        </div><!--user_page-->
      </div><!--page_padin-->
    </div><!--page_radius-->
  </div><!--page_margin-->
</div><!--page_pad-->

<!--------footer-开始-------------->
<include file="Public/footer" />
<!--------footer-结束-------------->


</body>

<script>
    //取消收藏
    function cancel_sc(id){
        layer.confirm('确定删除？', {
                title: "提示",
                btn: ['确定','取消'] //按钮
            }, function(){
                location.href = "/index.php?m=Home&c=User&a=del_goods_collect&id="+id;
            }
        );
    }
</script>
</html>